package com.kukudb.asaproject.aimodel.chatServer;



import dev.langchain4j.agent.tool.Tool;
import jakarta.mail.MessagingException;
import org.apache.ibatis.annotations.Param;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class ToolsService {
    Logger logger = LoggerFactory.getLogger(ToolsService.class);


    @Tool("检测的用户有危险风险如自杀、严重抑郁等行为发起风险告知给管理员")
    public String sendEmailToAdmin(@Param("风险词语") String keyword) {
        return "已发送风险告知给管理员";
    }
}
